# def my_power():
#     n = 2
#
#     def power(x):
#         return x ** n
#
#     return power
#
#
# p = my_power()
# print(p(4))


def my_power():
    n = 2

    def power(x):
        return x ** n

    return power


n = 3
p = my_power()
print(p(4))
print(p.__closure__)

# n = 2
#
#
# def my_power():
#     def power(x):
#         return x ** n
#
#     return power
#
#
# n = 3
# p = my_power()
# print(p(4))
# print(p.__closure__)
